package tech.bmatch.redpack.model;

import java.util.Date;

/**
 * @author: Awake
 * @date: 2018-11-03 10:21
 **/
public class Merchant extends BaseModel {
    /**
     * 商家名称
     */
    private String name;
    /**
     * 商家Logo的Url
     */
    private String logo;

    /**
     * 位置信息
     */
    private double lon;
    private double lat;
    private double distance;


    public Merchant(String id,String name, String logo, double lon, double lat) {
        this.setId(id);
        this.name = name;
        this.logo = logo;
        this.lon = lon;
        this.lat = lat;

        this.setGmtCreated(new Date());
        this.setGmtModified(new Date());
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getDistance() {
        return distance;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }
}
